

package com.coding4play.mqtt.broker.internal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 内部消息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InternalMessage implements Serializable {

    private static final long serialVersionUID = -1L;

    private String brokerId;

    private String processId;

    //当前频道clientId
    private String clientId;

    private String topic;

    private Integer mqttQoS;

    private byte[] messageBytes;

    private Boolean retain;

    private Boolean dup;

}
